package com.woniuxy.store.client;

import com.woniuxy.store.client.param.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import result.Result;

/**
* name是项目名，contextId是client的名字
*/
@FeignClient(contextId = "packageManageClient",name="store",path="/package")
public interface PackageManageClient {

    @PostMapping("/addPack")
    public Result addPackage(@RequestBody AddPackageParam param);

    @PostMapping("/addFun")
    public Result addFunction(@RequestBody AddFunctionParam param);

    @PostMapping("/PackFun")
    public Result addPackFun(@RequestBody AddPackFunParam param);


}
